package com.gsezone.s12;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;

import com.gsezone.s12.model.User;

public class MySet {

	public static void main(String[] args) {
		
		User user = new User(1l, "Grzegorz");
		
		Collection<User> userList = new ArrayList<>();
		userList.add(user);
		userList.add(user);
		System.out.println(userList.size());
		
		Collection<User> userSet = new HashSet<>();
		userSet.add(user);
		userSet.add(user);
		System.out.println(userSet.size());
	}
	
}
